package cc.jq1024.trigger.api.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @Author: jia-qiang ljq1024.cc
 * @desc: 查询抽奖策略权重规则 - 返回结果
 * @Date: 2024-07-01-18:42
 */
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class RaffleStrategyRuleWeightResponseDTO implements Serializable {
    /** 权重规则配置的抽奖次数 */
    private Integer ruleWeightCount;
    /** 用户在一个活动下，完成的总抽奖次数 */
    private Integer userActivityAccountTotalUseCount;
    /** 当前权重可抽奖范围 */
    private List<StrategyAward> strategyAwards;

    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    public static class StrategyAward {
        /** 奖品ID */
        private Long awardId;
        /** 奖品标题 */
        private String awardTitle;
    }
}
